#!/usr/bin/env node

const fs = require('fs'),
      dir = process.argv[2] || __dirname;
if(!fs.existsSync(dir)){
  console.error('目录不存在，请输入正确目录名 ');
  process.exit(1);
} 
console.log(fs.readdirSync(dir));
